package com.lsu.chain.homework;

/**
 * 链式结构
 *
 * @Author wang suo
 * @Date 2020/11/26 0026 15:18
 * @Version 1.0
 */
public abstract class AbstractChain {
    private AbstractChain next;

    public AbstractChain getNext() {
        return next;
    }

    public void setNext(AbstractChain next) {
        this.next = next;
    }

    /**
     * 处理请求
     *
     * @param request 请求对象
     */
    public abstract void handlerRequest(String request);
}
